package com.wgy.day16.Static;


/**
 * Created by pc on 2020/11/11 21:09
 * Description: LearningJava
 */
public class Demo01StaticField {
    public static void main(String[] args) {
        Student one = new Student("郭靖", 20);

        one.room = "101教室";
        System.out.println("姓名:" + one.getName() + ",年龄:" + one.getAge() +
                ",教室:" + one.room + ",学号:" + one.getId());

        Student two = new Student("黄蓉", 19);
        System.out.println("姓名:" + two.getName() + ",年龄:" + two.getAge() +
                ",教室:" + two.room + ",学号:" + two.getId());

        Student three = new Student("黄蓉3", 22);
        System.out.println("姓名:" + three.getName() + ",年龄:" + three.getAge() +
                ",教室:" + three.room + ",学号:" + three.getId());

    }
}
